import type { AddressResult } from '@/types/address'
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useAddressStore = defineStore('address', () => {
  const selectAddress = ref<AddressResult>()
  const changeAddress = (val: AddressResult) => {
    selectAddress.value = val
  }
  return {
    selectAddress,
    changeAddress,
  }
})
